<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@include file="/WEB-INF/templates/common/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>${title}</title>
<link rel="stylesheet"
	href="${basePath}/static/scan/js/My97DatePicker/skin/WdatePicker.css" />
<link rel="stylesheet" href="${basePath}/static/scan/css/scan.css" />
<script type="text/javascript"
	src="${basePath}/static/scan/jss/json2.js"></script>
<script src="${basePath}/static/scan/js/My97DatePicker/WdatePicker.js"></script>
<script src="${basePath}/static/js/jquery-1.7.2.min.js"></script>
<script src="${basePath}/static/js/jcrop/jquery.Jcrop.min.js"></script>
<script src="${basePath}/static/rotate/jquery.rotate.min.js"></script>
<script type="text/javascript"
	src="${basePath}/static/js/easydialog.min.js"></script>
<script src="${basePath}/static/scan/photo.js"></script>
<script type="text/javascript" src="${basePath}/static/layer/layer.js"></script>
<link href="${basePath}/static/layer/layer_style.css" rel="stylesheet"
	type="text/css">
<style type="text/css">
/*-------����ҳ��ʽ------*/
#div_TC {
	width: 940px;
	height: auto;
	background: #FFF;
	border-radius: 5px;
	margin: 0 auto;
	overflow: hidden;
	display: none;
}

.TC_title {
	width: 100%;
	height: 50px;
	background: #009388;
}

.TC_title h3 {
	font-family: "΢���ź�";
	font-size: 14px;
	color: #fff;
	font-weight: bold;
	line-height: 50px;
	text-indent: 32px;
	float: left;
}

.TC_title ul {
	width: 80px;
	height: 32px;
	float: right;
	margin-top: 9px;
}

.TC_title ul li {
	width: 76px;
	height: 32px;
	font-family: "΢���ź�";
	font-size: 14px;
	color: #030000;
	line-height: 32px;
	text-align: center;
	border: 0;
	background: url(${basePath}/static/scan/publics/images/but.png)
		no-repeat;
	float: left;
	margin-right: 14px;
}

.TC_title ul li input {
	cursor: pointer;
	display: block;
	width: 100%;
	height: 100%;
	font-size: 14px;
}

.TC_search_table {
	width: 936px;
	height:502px
	border: #e3e5e4 1px solid;
}

.TC_search_table li {
	float: left;
}

.TC_li {
	background: url(../../publics/images/sidebar2-2.png) no-repeat;
	margin-bottom: 4px;
	float: left;
}

.TC_current {
	color: #6c6f6f;
	background: url(../../publics/images/sidebar2-1.png) no-repeat;
}

.TC_foot {
	width: 100%;
	height: 54px;
	background: #009388;
	float: left;
}

.TC_foot ul {
	width: 100%;
	height: 32px;
	float: right;
	margin-top: 11px;
}

.TC_foot ul li {
	margin: 0 auto;
/* 	width: 172px; */
	height: 32px;
	font-family: "微软雅黑";
	font-size: 14px;
	color: #ffffff;
	line-height: 32px;
/* 	text-align: center; */
	border: 0;
}

.TC_foot ul li a {
	color: #ffffff;
	cursor: pointer;
	display: block;
	width: 76px;
	float: left;
	background: url(${basePath}/static/scan/publics/images/bc.png) no-repeat;
	margin: 0 5px;
}

#div_TC tr:nth-of-type(2n) .tdLabel_8 {
	background-color: #F5F5F5;
}

#div_TC tr td {
	border: 1px solid #D5DDDD;
}

.clear{clear:both}
</style>

</head>
<body>


	<div class="container">
		<input type="hidden" id="firstGuid" value="${hospitalNote.firstGuid}" />
		<input type="hidden" id="basePath" value="${basePath}" />
		<input type="hidden" id="picHostPath" value="${picHostPath}" />
		
		<div class="header" id="Toolbar">
			<table style="width: 98%; margin: auto; border-collapse: collapse;"
				cellspacing="0" cellpadding="0" border="0" bordercolor="#FFFFFF">
				<tbody>
					<tr>
						<td>
							<table style="margin: auto; border-collapse: collapse;"
								width="100%" border="2" bordercolor="#FFFFFF" cellpadding="0"
								cellspacing="0">
								<tbody>
									<tr bordercolor="#FFFFFF">
										<td class="tdleft" align="center" valign="middle">
										<!-- <input
										id="ItemCurrentMrsSelect" size="10" class="Wdate"
											onfocus="WdatePicker()"> &nbsp;&nbsp; 病案数: <span
											id="baCount">0</span> 扫描页: <span id="scanCount">0</span> 编制页:
											<span id="catalogCount">0</span> --></td>
										<td align="center" valign="middle"><select
											id="ScanerSelect">

												<option value="V21">捷宇高拍仪-V21</option>


										</select> &nbsp;&nbsp; <input type="button" value="启动拍摄" id="Edit"
											title="尺寸"> 
											<!-- <input type="button" value="快捷键"
											title="显示扫描仪快捷键"
											onclick="layer.alert('单面扫描快捷键：ALT！\r\n连续扫描快捷键：空格键！', {icon: 6});">
											<input type="button" value="关闭"
											onclick="Microsoft_Scan.closeScaner();"> <input
											type="button" value="中止"
											onclick="Microsoft_Scan.cancleScan();"> -->
											
											</td>
										<!--<td align="center" valign="middle">
										 	<input type="button"
											value="扫描" onclick="scan(1)" title="单面扫描快捷键：ALT！"
											style="font-weight: bold;"> <input type="button"
											value="连续扫描" onclick="scan(2)" title="连续扫描快捷键：空格键！"
											style="font-weight: bold;"> 
										</td>-->
										<!--<td align="center" valign="middle">
											 <input type="button"
											value="插扫" title="单张单面插扫"> <input type="button"
											value="替扫" title="单张单面替扫"> <input type="button"
											value="连续插扫"> 
										</td>-->
										<td align="center" valign="middle">
											<div style="padding: 3px 0;">
												<!--<input type="button" value="后退" onclick="history.go(-1);" style="cursor: hand;">
                                        &nbsp;
                                        <input type="button" value="前进" onclick="history.go(1);" style="cursor: hand;">
                                        &nbsp;-->
												<input type="button" value="刷新" onclick="location.reload();"
													style="cursor: hand;"> &nbsp; <input type="button"
													value="关闭" onclick="window.close();" style="cursor: hand;">
											</div>
										</td>
									</tr>
								</tbody>
							</table>
						</td>
					</tr>
				</tbody>
			</table>
		</div>
		<div class="content">
			<div class="left_content">
				<div class="left_content_content">
					<div class="ItemCurrentMr"></div>
				</div>
			</div>
			<div class="mid_content">
				<div class="mid_Allcontent">
					<div class="mid_content_header">
						<div id="MrDocViewOrToolbar">
							<div id="MrDocViewOrToolbarA">
								<table style="width: 98%;" cellspacing="0" cellpadding="0">
									<tbody>
										<tr>
											<td id="MrDocViewOrToolbarMrInfoTd" nowrap="nowrap"><span
												id="MrDocViewOrToolbarMrInfoSpan"> <!--   病案号: <span id="CurrentMrIdBox">2-10233818</span>&nbsp;&nbsp;-->
													识别码: <span id="CurrentMrcodeBox">${hospitalNote.mrId}</span>&nbsp;&nbsp;
													姓名: <span id="CurrentMrNameBox">${hospitalNote.name}</span>&nbsp;&nbsp;
													身份证号: <span id="CurrentMrOutTimeBox">${hospitalNote.idNumber}</span>
											</span> &nbsp;&nbsp; <span id="DocSearcher"></span></td>
											<td style="text-align: right;" nowrap="nowrap">页数: <span
												id="CurrentTotalPagecount"
												style="color: #616130; font-size: larger;">0</span>&nbsp;&nbsp;&nbsp;&nbsp;
												<button id="DeleteDocBtn"
													style="color: black; height: 25px;"
													onclick="deleteWendang();">删除</button>
											</td>
										</tr>
									</tbody>
								</table>
							</div>
						</div>
						<div id="MrDocViewOrToolbarB">
							<table style="width: 98%;" cellspacing="0" cellpadding="0">
								<tbody>
									<tr>
										<td style="text-align: left;" nowrap="nowrap">
											<div id="operBtn">
												<!-- 	<input type="button" onclick="uploadFileByHttpClient()"
													value="上传数据"> &nbsp; <input type="button"
													value="扫描完成" onclick="updateScanStatus()"> -->
												<!--  <input type="button" value="贴条码"> -->
												<!-- &nbsp; <input type="button" value="去污点"> &nbsp; <input
													type="button" onclick="imgCut()" value="裁切"> &nbsp;
												<input type="button" onclick="editImg(-2)" value="左纠偏">
												&nbsp; <input type="button" onclick="editImg(2)" value="右纠偏">
												&nbsp; <input type="button" onclick="editImg(180)"
													value="翻转"> &nbsp; -->
												<!--   <input type="button" value="还原"> -->
											</div>
										</td>

										<td style="text-align: right;">
											<div>
												&nbsp;&nbsp;&nbsp;&nbsp; <span class="toolBtn"
													onclick="filled()">充满</span> &nbsp; <span class="toolBtn"
													onclick="fullPage()">全页</span> &nbsp; <span class="toolBtn"
													onclick="Thumbnail()">缩略图</span> &nbsp; <span
													class="effectBtn" title="放大" onclick="enlarge()">+</span>
												&nbsp; <span class="effectBtn" title="缩小" onclick="small()">-</span>
												&nbsp; <span class="toolBtn"
													onclick="location.reload(true);">刷新</span>
											</div>
										</td>
									</tr>
								</tbody>
							</table>
						</div>
					</div>
					<div class="mid_content_content">
						<div
							style="height: 100%; cursor: default; overflow-y: scroll; padding: 10px;">
							<div class="imgContent" id="MrDocViewOrBoard">
								<ul id="MrDocViewOrBoardUl">
									<c:forEach items="${scanFileList}" var="scanFile">
										<li sacnFileRelationId="${scanFile.sacnFileRelationId}"
											scanFileId="${scanFile.scanFileId}"
											fileHash="${scanFile.hash}"
											scanFunctionId="${scanFile.scanFunctionId}"><a
											class="imgActive" href="#"><span class="close"
												onclick="del(this)">x</span><img
												src="${picHostPath}${scanFile.fileUrl}${scanFile.fileName}"
												alt="" /></a>
									</c:forEach>
									<%-- <li>
                                    <a href="#"><img src="${basePath}/static/scan/image/000077.png" alt=""/></a>
                                    <p>111</p>
                                    <p>222</p>
                                </li>
                                <li>
                                    <a href="#"><img src="${basePath}/static/scan/image/000077.png" alt=""/></a>
                                    <p>111</p>
                                    <p>222</p>
                                </li>
                                <li>
                                    <a class="imgActive" href="#"><img src="${basePath}/static/scan/image/000077.png" alt=""/></a>
                                    <p>111</p>
                                    <p>222555555555</p>
                                </li>
                                <li>
                                    <a href="#"><img src="${basePath}/static/scan/image/000077.png" alt=""/></a>
                                    <p>111</p>
                                    <p>222</p>
                                </li>
                                <li>
                                    <a href="#"><img src="${basePath}/static/scan/image/000077.png" alt=""/></a>
                                    <p>111</p>
                                    <p>222</p>
                                </li> --%>
								</ul>
							</div>
						</div>
					</div>
				</div>

			</div>
			<div class="right_content">
				<div class="menuList">
					<!--  <div class="itemOnePageType menuActive">
                    <span>00 - 病案首页</span>&nbsp;&nbsp;<span>11</span>
                </div>
                <div class="itemOnePageType">
                    <span>00 - 病案首页</span>&nbsp;&nbsp;<span>11</span>
                </div>
                <div class="itemOnePageType">
                    <span>00 - 病案首页</span>&nbsp;&nbsp;<span>11</span>
                </div>
                <div class="itemOnePageType">
                    <span>00 - 病案首页</span>&nbsp;&nbsp;<span>11</span>
                </div>
                <div class="itemOnePageType">
                    <span>00 - 病案首页</span>&nbsp;&nbsp;<span>11</span>
                </div> -->
				</div>
			</div>
		</div>
	</div>
	<!-- 新增弹出框-->
	<div id="div_TC">
		<div class="TC_title">
			<h3>拍照</h3>
			<ul>
				<li><a id="closeBtn2">取消</a></li>
			</ul>
		</div>
		<div class="TC_search_table">
			<div style="float:left;width: 598px; height: 500px;border:1px solid green">
				<object 
					type="application/x-itst-activex" 
					classid="clsid:454C18E2-8B7D-43C6-8C17-B1825B49D7DE"
					id="captrue"
					width="598" 
					height="500"></object>
			</div>
			<div style="border:1px solid red;width:336px;height:500px;float:right;overflow:auto">
				<!-- <object
					 type="application/x-itst-activex" 
	 				 clsid="{8622e61a-22d1-4c10-9ecc-4dfc1f9a4f03}"      
					 id="cap"
					 width="336" 
					height="500"> 
				    
			    </object> -->
			    <div id="picDiv" style="width:270px;height:320px;margin:30px auto;border:1px solid yellow">
			    	<%-- <img width="300" height="300" src="${basePath}/static/scan/images/000077.png"/> --%>
			    </div>
			
			</div>
			<div style="clear:both"></div>
	   </div>
		 
		<div class="TC_foot">
			<ul>
				<li>
				<!-- <input type="button" value="启动主" name="StartBtn" onClick="Start1_onclick()"> -->
<!--   <input type="button" value="启动副" name="StopBtn" onClick="Start2_onclick()"> -->
  <input type="button" value="停止" name="StopBtn" onClick="CAPTURE.closeCaptrue()">
  <input type="button" value="拍摄" name="SaveJPGBtn" onClick="photoImg()">
<!--   <input type="button" value="Gray" name="SaveJPGBtn" onClick="SaveGray_onclick()">
  <input type="button" value="TIF" name="SaveTIFBtn" onClick="SaveMulTIF_onclick()"> -->
<!--   <input type="button" value="TIFJPG" name="SaveTIFBtn" onClick="SaveTifJPG_onclick()"> -->
 <!--  <input type="button" value="设置切黑边" name="SaveTIFBtn" onClick="CutHB_onclick()">
  <input type="button" value="设置矫正" name="SaveTIFBtn" onClick="Skew_onclick()"> -->
  <input type="button" value="参数设置" name="ParaSet" onClick="CAPTURE.paramSetting()">
  <input type="button" value="PIN设置" name="ParaSet" onClick="CAPTURE.pinSetting()">
<!--   <input type="button" value="删除JPG" name="DeleteJPGBtn" onClick="DeleteJPG_onclick()"> -->
<!--   <input type="button" value="上传JPG" name="UpLoadBtn" onClick="UpLoadJPG_onclick()"> -->
<!--   PDF文件名：<input type="text" id="pdffileName" />
  <input type="button" value="开始拍PDF" name="StartPDFBtn" onClick="StartPDF_onclick()">
  <input type="button" value="增加PDF彩页" name="ColorPDFBtn" onClick="ColorPDF_onclick()">
  <input type="button" value="增加图像" name="ColorPDFBtn" onClick="ImgPDF_onclick()">
  <input type="button" value="增加PDF黑白页" name="BWPDFBtn" onClick="BWPDF_onclick()">
  <input type="button" value="结束拍PDF" name="EndPDFBtn" onClick="EndPDF_onclick()"> -->
 
 亮度: <select onChange="CAPTURE.brightnessSetting(this)">
 	<option value="-64">-64</option>
	<option value="-60">-60</option>
	<option value="-50">-50</option>
	<option value="-40">-40</option>
	<option value="-30">-30</option>
	<option value="-20">-20</option>
	<option value="-10">-10</option>
	<option value="0">0</option>
	<option value="10">10</option>
	<option value="20" selected="selected">20</option>
	<option value="30">30</option>
	<option value="40">40</option>
	<option value="50" >50</option>
	<option value="60">60</option>
	<option value="64">64</option>

  </select>

  对比度: <select onChange="CAPTURE.contrastSetting(this)">
	<option value="0">0</option>
	<option value="10">10</option>
	<option value="20" selected="selected">20</option>
	<option value="30">30</option>
	<option value="40">40</option>
	<option value="50">50</option>
	<option value="60">60</option>
	<option value="70">70</option>
	<option value="80">80</option>
	<option value="90">90</option>
	<option value="95">95</option>
  </select>
  曝光度:
  <select id="ExposureValue" onChange="CAPTURE.sensitometrySetting(this)">
	<option value="0">0</option>
	<option value="10">10</option>
	<option value="20">20</option>
	<option value="30">30</option>
	<option value="40">40</option>
	<option value="50" selected="selected">50</option>
	<option value="60">60</option>
	<option value="70">70</option>
	<option value="80">80</option>
	<option value="90">90</option>
	<option value="100">100</option>
  </select>
  
  <input type="button" value="旋转" onClick="CAPTURE.rotate()">&nbsp;
  
    拍摄类型:
  <select id="photoType" onChange="CAPTURE.photoType(this)">
	<option value="3">自动</option>
	<option value="0">默认</option>
	<option value="4">证件</option>
	<option value="1">自定义</option>
  </select>&nbsp;
  <input type="button" value="删除" onClick="deleteImg()">&nbsp;
    <input type="button" value="上传" onClick="uploadScanImage()">&nbsp;
  
<!--   <input type="button" value="硬件ID" onClick="getDeviceId()"> -->
    
<!--   <input type="radio" value="3" name="mode" id="autoMode" onClick="selectAutoMode(this)"/><label for="autoMode">自动</label>
  <input type="radio" value="0" name="mode" id="defaultMode" onClick="selectDefaultMode(this)"/><label for="autoMode">默认</label>
  <input type="radio" value="4" name="mode" id="sfzMode" onClick="selectSfzMode(this)"/><label for="autoMode">证件</label>
  <input type="radio" value="1" name="mode" id="customMode" onClick="selectSfzMode(this)"/><label for="autoMode">自定义</label>
			 -->	
				</li>
			</ul>
		</div>
	</div>

	<script>
	
	 var CAPTURE = {
			tempPath:"D:\\MRLOCAL\\",
			//开启摄像头
			openMainCaptrue:function(){
				  captrue.bStopPlay(); 
			      captrue.vSetResolution(7);
					    	
			      captrue.bStartPlay();
				  captrue.bSetMode(3); 
			},
			//关闭摄像头
			closeCaptrue:function(){
				captrue.bStopPlay();
			},
			//拍摄jsp格式图片
			photoJPSImg:function(){
				var fileName = new Date().getTime();
				captrue.bSaveJPG(this.tempPath,fileName);
				return fileName;
			},
			init:function(){
				//切黑边
				captrue.vSetDelHBFlag(1);
				//设置矫正
				captrue.vSetSkewFlag(1);
			},
			//参数设置
			paramSetting:function(){
				captrue.displayVideoPara();
			},
			//PIN设置
			pinSetting:function(){
				captrue.vSetCapturePin();
		  		captrue.bStartPlay2(0);
			},
			//删除拍摄图片
			deletePhotoImg:function(){
				var fileSystemObject = new ActiveXObject("Scripting.FileSystemObject");
				var fileSystem = fileSystemObject.GetFolder(this.tempPath);
				var enumFiles = new Enumerator(fileSystem.files);
				for (; !enumFiles.atEnd(); enumFiles.moveNext()) {
					enumFiles.item().Delete();
				}
			},
			//设置亮度
			brightnessSetting:function(element){
				
				captrue.vSetBrightness(element.value);
			},
			//对比度
			contrastSetting:function(element){
				
				captrue.vSetContrast(element.value);
			},
			//设置曝光度
			sensitometrySetting:function(element){
				
				captrue.vSetExposure(element.value);
			},
			rotate:function(){
				  captrue.bStopPlay();  	
				  if(this.rotateAngle==360){
					  this.rotateAngle=0;
				  }
			      captrue.bStartPlayRotate(this.rotateAngle);
			      this.rotateAngle=this.rotateAngle+90;
			      
			},
			//每次旋转角度
			rotateAngle:90,
			//拍摄类型
			photoType:function(element){
				if(element.value==1){
					captrue.bSetImageArea(1000,1000,8000,8000);
				}
				captrue.bSetMode(element.value);
			}
			
	}
	//拍摄图片
	function photoImg(){
		$("#picDiv").html("");
		//删除临时文件夹
		CAPTURE.deletePhotoImg();
		//初始化默认信息
		CAPTURE.init();
		//拍摄图片返回文件名
		var fileName = CAPTURE.photoJPSImg();
		//var picHostPath="http://localhost:8090/upload/temp/";
		
		var filePath=CAPTURE.tempPath+fileName+".jpg";
	
		
		var result= uploadPhotoImg(filePath);
		if(result.ret=="success"){
			var hostFileName=result.fileName;
			var picHostPath=$("#picHostPath").val();
			var fileUrl=picHostPath+"tempImgPath/"+hostFileName;
			var html="<img width='270' id='img' fileName='"+hostFileName+"' height='320' src='"+fileUrl+"'/>";
			$("#picDiv").html(html);
		}
		
		
	}
	
		$('#Edit').on("click", function() {
			easyDialog.open({
				container : 'div_TC',
				fixed : true,
			});
			//开启摄像头
			CAPTURE.openMainCaptrue();
			$('#closeBtn2').on("click", function() {
				
				var firstGuid=$("#firstGuid").val();
				//关闭摄像头
				CAPTURE.closeCaptrue();
				//easyDialog.close();
				window.location.href="${basePath}/scan/photoPicPage?firstGuid="+firstGuid;
				
			})
		})

		//删除拍摄图片
		function deleteImg(){
			$("#picDiv").html("");
			//删除临时文件夹图片信息
			CAPTURE.deletePhotoImg();
			
		}
		
		//上传图片
		function uploadScanImage(){
			var firstGuid=$("#firstGuid").val();
			var fileName=$("#img").attr("fileName");
			if(!fileName){
				alert("拍摄图片路径为空!请重新拍摄!");
				return;
			}
			var scanImageList = [];
			scanImageList.push(fileName);
			
			$.ajax({
				type:"post",
				url:"${basePath}/scan/uploadScanImgs",
				data:{firstGuid:firstGuid,scanImageList:scanImageList.toString()},
				success:function(data){
					
					 if(data.success){
						$("#picDiv").html("");
						alert("拍摄图片上传成功!");
					 }else{
						 alert(data.msg);
					 }
				}
			});
		}
 
		
		/*充满显示*/
		function filled() {
			$("#MrDocViewOrBoard ul").css({
				"width" : "100%",
				"height" : "200%"
			}).children("li").css({
				"width" : "100%"
			});
		}
		/*全页显示*/
		function fullPage() {
			$("#MrDocViewOrBoard ul").css({
				"width" : "60%",
				"height" : "120%"
			}).children("li").css({
				"width" : "100%"
			});
		}
		/*缩略图*/
		function Thumbnail() {
			$("#MrDocViewOrBoard ul").css({
				"width" : "100%",
				"height" : "80%"
			}).children("li").css({
				"width" : "33%"
			});
		}
		/*放大功能*/
		function enlarge() {
			var imgContentWidth = $("#MrDocViewOrBoard").css("width");
			var ulWidth = $("#MrDocViewOrBoard ul").css("width");
			var ulHeight = $("#MrDocViewOrBoard ul").css("height");
			var el = parseInt(ulHeight) / parseInt(ulWidth);
			if (parseInt(ulWidth) >= parseInt(imgContentWidth)) {
				return false;
			}
			$("#MrDocViewOrBoard ul").css("width",
					parseInt(ulWidth) * 1.1 + "px");
			$("#MrDocViewOrBoard ul").css(
					"height",
					parseInt($("#MrDocViewOrBoard ul").css("width")) * el
							+ "px");

		}
		/*缩小功能*/
		function small() {
			var ulWidth = $("#MrDocViewOrBoard ul").css("width");
			var ulHeight = $("#MrDocViewOrBoard ul").css("height");
			var el = parseInt(ulHeight) / parseInt(ulWidth);
			$("#MrDocViewOrBoard ul").css("width",
					parseInt(ulWidth) / 1.1 + "px")
			$("#MrDocViewOrBoard ul").css(
					"height",
					parseInt($("#MrDocViewOrBoard ul").css("width")) * el
							+ "px");
		}

		//删除单个扫描图片
		function del(obj) {
			layer.confirm('您确定要删除此条记录吗？', {
				btn : [ '确定', '取消' ]
			//按钮
			}, function() {
				var lis = $(obj).closest("li");
				var firstGuid = $("#firstGuid").val();
				var scanFunctionId = lis.attr("scanFunctionId");
				var fileHash = lis.attr("fileHash");
				var sacnFileRelationId = lis.attr("sacnFileRelationId");
				var scanFileId = lis.attr("scanFileId");

				console.log(scanFunctionId + "--" + fileHash + "--" + firstGuid
						+ "--" + sacnFileRelationId + "--" + scanFileId);
				$.ajax({
					type : "post",
					data : {
						firstGuid : firstGuid,
						fileHash : fileHash,
						sacnFileRelationId : sacnFileRelationId,
						scanFileId : scanFileId
					},
					url : "${basePath}/scan/deleteScanImg",
					success : function(data) {
						if (data.success) {
							lis.remove();
							layer.msg('删除成功！', {
								icon : 1
							});
						} else {
							layer.msg('删除失败！', {
								icon : 7
							});
						}
					}
				});

			}, function() {
				layer.close();
			});

		}
	</script>
</body>
</html>
